import platform = require('../../../../platform/common/baseCommon');
import appClient = require('../../../../platform/client/appClient');


@platform.addon("参数跳转测试", "参数跳转测试", "platform.test")
@appClient.template("project/test/views/test/navigate-param.html")
export class navigateView extends appClient.baseView {

    view?: appClient.baseView;

    $navigate?: JQuery = undefined;

    onAfterBind?() {
        this.$navigate.click(() => {
            this.onClick();
        });
    }

    onClick?() {
        appClient.mainApplication.mainForm.navigate(this.view, "测试参数跳转", { "name": "china" })
    }
}